package com.dingreading.cloud.web.service.impl;

import com.dingreading.cloud.web.entity.table.MembersTableDef;
import com.mybatisflex.spring.service.impl.ServiceImpl;
import com.dingreading.cloud.web.entity.Members;
import com.dingreading.cloud.web.mapper.MembersMapper;
import com.dingreading.cloud.web.service.MembersService;
import org.springframework.stereotype.Service;

/**
 *  服务层实现。
 *
 * @author Administrator
 * @since 2024-09-11
 */
@Service
public class MembersServiceImpl extends BaseServiceImpl<MembersMapper, Members, MembersTableDef> implements MembersService {

    @Override
    protected MembersTableDef getTable() {
        return MembersTableDef.members;
    }

    @Override
    public Members getByUid(String uid) {
        return getMapper().selectOneByCondition(table.uid.eq(uid));
    }

}
